wayland: Fix up key event translation
authorMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2013 14:40:56 +0000 (10:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 6 Apr 2013 14:48:57 +0000 (10:48 -0400)
commiteb9ab7aad410fca19e2d6060937713a5a28648fc
tree7146e21c07def33614e6527e67aab69732b06483
parentc659f892fff4e11daa8119de32b1af856572fe1d
wayland: Fix up key event translation

The is_modifier field is supposed to be set if the key
would act as a modifier, not if any modifiers are currently
active. To fix this, introduce a private
_gdk_wayland_keymap_key_is_modifier function.

At the same time, make the hardware_keycode field in key
events actually contain the hardware keycode, not a copy
of the keyval.
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkkeys-wayland.c
gdk/wayland/gdkprivate-wayland.h